package com.wanmait.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
* Created by Mybatis Generator 2023/11/30
*/
@Data
@TableName(value = "admin")
@Accessors(chain = true)
public class Admin implements Serializable {
    /**
     * 管理员id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 管理员昵称
     */
    @TableField(value = "admin_name")
    private String adminName;

    /**
     * 管理员密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 权限
     */
    @TableField(value = "a_limit")
    private Integer aLimit;

    /**
     * 管理员添加时间
     */
    @TableField(value = "insert_time")
    private Date insertTime;

    /**
     * 管理员添加人
     */
    @TableField(value = "insert_admin_id")
    private Integer insertAdminId;

    /**
     * enable
     */
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_ADMIN_NAME = "admin_name";

    public static final String COL_PASSWORD = "password";

    public static final String COL_LIMIT = "a_limit";

    public static final String COL_INSERT_TIME = "insert_time";

    public static final String COL_INSERT_ADMIN_ID = "insert_admin_id";

    public static final String COL_ENABLE = "enable";
}